package com.kusiri.kframework.component
{
	import com.kusiri.kframework.KfContext;
	
	/**
	 * A factory class for generating components
	 */ 
	public class KfComponentFactory
	{
		/**
		 * The identifier for the component (e.g. in prana)
		 */
		public var componentId : String;
		
		public var module : KfContext;
		
		public function KfComponentFactory(  ) : void
		{
		}
		
		/**
		 */
		public function getUiComponent( onSuccess : Function, onFail : Function ) : void
		{
			module.getComponent(componentId, onSuccess, onFail);
		}
	}
}